import numpy as np

arr1 = np.array([[10, 20, 30], [40, 50, 60]])
arr2 = np.array([1, 2, 3])
print('arr1与arr2相加: \n', arr1 + arr2)
arr3 = np.array([[1], [2]])
print('arr1与arr3相加: \n', arr1 + arr3)
arr4 = np.array(5)
print('arr1与arr4相加: \n', arr1 + arr4)
